package com.example.blogback.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Set;

@Data
@Schema(description = "角色实体类")
public class Role {
    @Schema(description = "角色ID")
    private Long id;
    
    @Schema(description = "角色名称")
    private String name;
    
    @Schema(description = "角色描述")
    private String description;
    
    @Schema(description = "角色拥有的权限列表")
    private Set<Permission> permissions;
}